import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextLine()) {
            String str = scanner.nextLine();
            String sub = scanner.nextLine();
            if(str.indexOf("\"")==-1) {
                boolean flag = true;
                String[] strs = str.split(",");
                for(int i = 0; i<strs.length; i++) {
                    if(strs[i].equals(sub)) {
                        System.out.println("Ignore");
                        flag = false;
                        break;
                    }
                }
                if(false == true) {
                    System.out.println("Important!");
                }
            }else {
                StringBuffer str1 = new StringBuffer(str);
                int index1 = 0, index2 = 0;
                boolean flag = true;
                while(true) {
                    index1 = str1.indexOf("\"");
                    if(index1 == -1) break;
                    index2 = str1.indexOf("\"",index1+1);
                    if(index2 == -1) break;
                    String tmp = str1.substring(index1+1,index2);

                    str1.delete(index1,index2+1);
                    //System.out.println(tmp);
                    if(tmp.equals(sub)) {
                        System.out.println("Ignore");
                        flag = false;
                        break;
                    }
                }
                //System.out.println(str1);
                if(flag == true) {
                    boolean flag2 = true;
                    String[] strs = str1.toString().split(",");
                    for(int i = 0; i<strs.length; i++) {
                        //System.out.println(strs[i]);
                        if(strs[i].equals(sub)) {
                            System.out.println("Ignore");
                            flag2 = false;
                            break;
                        }
                    }
                    if(flag2 == true) {
                        System.out.println("Important!");
                    }
                }
            }
        }
    }
}